using EasyGameTemplate;
using Framework.Utils.SingletonTemplate;
using UnityEngine;

namespace Framework.GamePool
{
    public class GamePoolMgr : SingletonBase<GamePoolManager>
    {

        public static void Init()
        {
            var objects = Resources.LoadAll<GamePoolAbstract>("Object");
            foreach (var gamePoolAbstract in objects)
            {
                Instance.SetPoolObject(gamePoolAbstract.name , gamePoolAbstract);
                // Debug.Log("预加载对象： " + gamePoolAbstract.name);
            }
        }
    }
}